﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JZQL.aspx.cs" Inherits="XSSJ_JCQL" %>

<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dxcp" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>基准年存量指标调整</title>
  <%--<script src="../submodal/common.js" type="text/javascript"></script>
  <link href="../submodal/subModal.css" rel="stylesheet" type="text/css" />
  <link href="../submodal/style.css" rel="stylesheet" type="text/css" />
  <script src="../submodal/subModal.js" type="text/javascript"></script>--%>
  <script language="JavaScript">

    function returnRefresh(returnVal) {
      // document.forms["aspnetForm"].submit();
      if (returnVal != null) {
        var a = returnVal.split("_");
        if (a[2] == 1)
          window.location.href = "SSFGLAdd.aspx?jfsjid=" + a[1] + "&khid=" + a[0];
        else
          alert("密码不正确");
      }
    }
    function create2(khid, nf) {
      showPopWin("调整气量", "JZQL_TZ.aspx?khid=" + khid + "&nf=" + nf, 400, 200, returnRefresh, true, true);
    }
  </script>
</head>
<body>
  <form id="form1" runat="server">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF2FB">
    <%--<tr>
      <td width="17" valign="top" background="../images/mail_leftbg.gif">
        <img src="../images/left-top-right.gif" width="17" height="29" />
      </td>
      <td valign="top" background="../images/content-bg.gif">
        <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
          id="table2">
          <tr>
            <td height="31">
              <div class="titlebt">
                实收费录入</div>
            </td>
          </tr>
        </table>
      </td>
      <td width="16" valign="top" background="../images/mail_rightbg.gif">
        <img src="../images/nav-right-bg.gif" width="16" height="29" />
      </td>
    </tr>--%>
    <tr>
      <%--<td valign="middle" background="../images/mail_leftbg.gif">
        &nbsp;
      </td>--%>
      <td valign="top" bgcolor="#F7F8F9">
        <%--<div style="width: 98%; margin-top: 5px;">
          <table width="100%">
            <tr>
              <td align="left" width="70%">
                <asp:Label ID="Label1" runat="server" Text="年份"></asp:Label>
                <asp:DropDownList ID="ddlYear" runat="server" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged"
                  AutoPostBack="true">
                </asp:DropDownList>
              </td>
            </tr>
          </table>
        </div>--%>
        <div style="width: 98%;">
          <dxpc:ASPxPopupControl ID="popup" ClientInstanceName="popup" runat="server" AllowDragging="true"
            PopupHorizontalAlign="OutsideRight" HeaderText="备注">
            <ContentCollection>
              <dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
                <dxcp:ASPxCallbackPanel ID="cpPopup" ClientInstanceName="cpPopup" runat="server"
                  Width="320px" OnCallback="cpPopup_Callback">
                  <PanelCollection>
                    <dxp:PanelContent ID="PanelContent1" runat="server">
                      <asp:HiddenField ID="khidHF" runat="server" />
                      <asp:HiddenField ID="nfHF" runat="server" />
                      <asp:TextBox ID="litText" runat="server" Text=""></asp:TextBox>
                      <asp:Button ID="Button1" runat="server" Text="更新" OnClick="Button1_Click" />
                    </dxp:PanelContent>
                  </PanelCollection>
                </dxcp:ASPxCallbackPanel>
              </dxpc:PopupControlContentControl>
            </ContentCollection>
          </dxpc:ASPxPopupControl>
          <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
            KeyFieldName="XH" Width="100%" CssFilePath="~/App_Themes/Office2003 Blue/{0}/styles.css"
            CssPostfix="Office2003_Blue" Theme="Aqua">
            <SettingsBehavior AllowFocusedRow="True" AutoFilterRowInputDelay="-1" />
            <SettingsPager Mode="ShowPager" PageSize="12">
              <FirstPageButton Text="首页" Visible="True">
              </FirstPageButton>
              <LastPageButton Text="末页" Visible="True">
              </LastPageButton>
              <Summary Text="总页数 {1} 当前页 {0} (总记录 {2})" />
            </SettingsPager>
            <Styles CssFilePath="~/App_Themes/Office2003 Blue/{0}/styles.css" CssPostfix="Office2003_Blue">
              <Header ImageSpacing="5px" SortingImageSpacing="5px">
              </Header>
              <LoadingPanel ImageSpacing="10px">
              </LoadingPanel>
            </Styles>
            <Images ImageFolder="~/App_Themes/Office2003 Blue/{0}/">
              <FilterRowButton Height="13px" Width="13px" />
              <CollapsedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvCollapsedButton.png"
                Width="11px" />
              <ExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                Width="11px" />
              <DetailCollapsedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvCollapsedButton.png"
                Width="11px" />
              <DetailExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                Width="11px" />
            </Images>
            <Columns>
              <dxwgv:GridViewDataTextColumn Caption="序号" FieldName="XH" VisibleIndex="0" Width="30px"
                FixedStyle="Left">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="客户编号" FieldName="KHID" VisibleIndex="1">
                <Settings AutoFilterCondition="Equals" />
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="客户名称" FieldName="KHMC" VisibleIndex="1">
                <Settings AutoFilterCondition="Contains" />
                <%--<DataItemTemplate>
                  <dxe:ASPxHyperLink ID="ASPxHyperLink3" runat="server" NavigateUrl='<%#"KHSFMXB.aspx?khid="+ Eval("khid")%>'
                    Text='<%#Eval("khmc") %>' />
                </DataItemTemplate>--%>
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="标识" FieldName="KH" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="基准气量" FieldName="JZQL" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>
              <%--  <dxwgv:GridViewDataTextColumn Caption="调整气量" FieldName="TZQL" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>--%>
              <dxwgv:GridViewDataColumn Caption="调整气量" VisibleIndex="1">
                <DataItemTemplate>
                  <a href="javascript:void(0);" onclick="OnMoreInfoClick(this, '<%#Eval("khid").ToString()+","+Eval("nf").ToString() %>')">
                    <%#Eval("tzql").ToString() %></a>
                </DataItemTemplate>
              </dxwgv:GridViewDataColumn>
              <%--   <dxwgv:GridViewDataTextColumn Caption="用气地址" FieldName="XXDZ" VisibleIndex="1" Width="250px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="用气性质" FieldName="YQXZ" VisibleIndex="1" Width="150px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="客户类别" FieldName="KHJB" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="管理单位" FieldName="DWMC" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="负责人电话" FieldName="LXDH" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="备注" FieldName="KHXX_BZ" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>--%>
              <%--<dxwgv:GridViewDataTextColumn Caption="" FieldName="" VisibleIndex="3" Width="25px">
                <DataItemTemplate>
                  <dxe:ASPxHyperLink ID="ASPxHyperLink3" runat="server" NavigateUrl='<%#"KHXXAdd.aspx?id="+ Eval("khid")%>'
                    Text="编辑" />
                </DataItemTemplate>
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="" FieldName="" VisibleIndex="11" Width="25px">
                <DataItemTemplate>
                  <asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete"
                    OnClientClick="return confirm('是否删除?')" Text="删除" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"khid") %>'
                    OnCommand="lbDelete_Command"></asp:LinkButton>
                </DataItemTemplate>
              </dxwgv:GridViewDataTextColumn>--%>
            </Columns>
            <Settings ShowFilterRow="true" ShowFilterRowMenu="true" />
            <StylesEditors>
              <ProgressBar Height="25px">
              </ProgressBar>
            </StylesEditors>
          </dxwgv:ASPxGridView>
        </div>
      </td>
      <%-- <td background="../images/mail_rightbg.gif">
        &nbsp;
      </td>--%>
    </tr>
    <%-- <tr>
      <td valign="bottom" background="../images/mail_leftbg.gif">
        <img src="../images/buttom_left2.gif" width="17" height="17" />
      </td>
      <td background="../images/buttom_bgs.gif">
        <img src="../images/buttom_bgs.gif" width="17" height="17">
      </td>
      <td valign="bottom" background="../images/mail_rightbg.gif">
        <img src="../images/buttom_right2.gif" width="16" height="17" />
      </td>
    </tr>--%>
  </table>
  </form>
</body>
<script type="text/javascript" language="javascript">
  function OnMoreInfoClick(element, keyValue) {
    popup.ShowAtElement(element);
    cpPopup.PerformCallback(keyValue);
  }
</script>
</html>
